AR = ar

SRCS = \
	f2.c

CUR_DIR = $(pwd)
INC_DIR = -I../../include
STATIC_LIB_DIR = ../../static_lib

LIB = -llog -L$(STATIC_LIB_DIR)
OBJS  := $(SRCS:%.c=%.o)
TARGET := libf2.so

CFLAGS += $(INC_DIR)
CFLAGS += -fPIC
all: $(TARGET)

$(TARGET):$(OBJS)
	gcc -shared $(CFLAGS) -o $@ $^ $(LIB)
	cp $(TARGET) ../../dyna_lib/
	
.PRONY:clean  
clean:  
	rm -f $(OBJS) $(TARGET)